3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
The 3D Viewer provides routines that you can use to handle editing commands that apply to a viewer object.
You can use the Q3ViewerCut function to handle the Cut editing command when applied to data selected in a viewer object.
The Q3ViewerCut function cuts the data currently selected in the viewer object specified by the theViewer parameter. The cut data is placed on the Clipboard. You should call Q3ViewerCut when the user chooses the Cut command in your application's Edit menu (or types the appropriate keyboard equivalent) and the selected data is inside a viewer pane.
You can use the Q3ViewerCopy function to handle the Copy editing command when applied to data selected in a viewer object.
The Q3ViewerCopy function copies the data currently selected in the viewer object specified by the theViewer parameter. The data is copied onto the Clipboard. You should call Q3ViewerCopy when the user chooses the Copy command in your application's Edit menu (or types the appropriate keyboard equivalent) and the selected data is inside a viewer pane.
You can use the Q3ViewerPaste function to handle the Paste editing command when applied to data previously cut or copied from a viewer object.
The Q3ViewerPaste function pastes 3D data from the Clipboard into the viewer object specified by the theViewer parameter. You should call Q3ViewerPaste when the user chooses the Paste command in your application's Edit menu (or types the appropriate keyboard equivalent) and the data on the Clipboard was placed there by a previous call to Q3ViewerCut or Q3ViewerCopy .
To determine whether the data on the Clipboard is 3D data or not, you can use the Q3ViewerGetState function (link) .
You can use the Q3ViewerClear function to handle the Clear editing command when applied to data selected in a viewer object.
The Q3ViewerClear function clears the data currently selected in the viewer object specified by the theViewer parameter. No data is copied onto the Clipboard. You should call Q3ViewerClear when the user chooses the Clear command in your application's Edit menu (or types the appropriate keyboard equivalent) and the selected data is inside a viewer pane.
You can use the Q3ViewerUndo function to handle the Undo command when applied to the most recent editing change to a viewer object.
The Q3ViewerUndo function undoes the most recent editing operation on the viewer object specified by the theViewer parameter. You should call Q3ViewerUndo when the user chooses the Undo command in your application's Edit menu (or types the appropriate keyboard equivalent).
Previous | QD3D Book | Overview | Chapter Contents | Next |